<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 1/29/2015
 * Time: 7:35 PM
 */
namespace app\modules\admin\controllers;

use Yii;
use yii\web\Controller;
use app\modules\admin\models\AdminLogin;
class DefaultController extends Controller {
    public $layout='login';
    public function actionIndex(){
    }
    public function actionLogin(){
        $model =new AdminLogin();
        if(isset($_POST['LoginForm'])){

        }
        return $this->render('login',['model'=>$model]);
    }
}